<template>
  <div class="big_box">
    <!-- 表单区域 -->
    <el-form :inline="true" :model="formInline" class="demo-form-inline margin">
      <div>
        <el-form-item label="协议客户" label-width="100px">
          <el-input v-model="formInline.user" value="选择客户"> </el-input>
        </el-form-item>
        <span class="span">上海正也医药有限公司</span>
      </div>
      <el-form-item label="协议状态" label-width="450px">
        <el-select v-model="formInline.region" placeholder="活动区域">
          <el-option label="正常" value="shanghai">正常</el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
    </el-form>

    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <div>
        <el-form-item label="购进指标:" label-width="100px">
          <el-select
            v-model="formInline.region1"
            placeholder="活动区域"
            class="select"
          >
            <el-option label="金额" value="shanghai">金额</el-option>
          </el-select>
        </el-form-item>
        <input type="text" placeholder="输入金额/数量" class="input1" />
      </div>
      <div>
        <el-form-item label="纯销指标:" label-width="220px">
          <el-input v-model="formInline.user1" value="金额"> </el-input>
        </el-form-item>
        <input type="text" placeholder="输入金额/数量" class="input1" />
      </div>
    </el-form>

    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <div>
        <el-form-item label="销售区域:" label-width="100px">
          <el-input v-model="formInline.user2" value="金额"> </el-input>
        </el-form-item>
        <el-tag closable>全国</el-tag>
      </div>
      <el-form-item label="签订时间:" label-width="390px">
        <input type="text" value="2020-02-01 18::25" class="input2" />
      </el-form-item>
    </el-form>

    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <div>
        <el-form-item label="购进渠道:" label-width="100px">
          <el-select
            v-model="formInline.region2"
            placeholder="活动区域"
            class="select1"
          >
            <el-option label="金额" value="shanghai">金额</el-option>
          </el-select>
        </el-form-item>
        <el-input class="input3" v-model="formInline.user3" value="选择客户">
        </el-input>
      </div>
    </el-form>

    <!-- 表格区域 -->
    <div class="content">
      <div class="content_heater">
        <p>指定渠道编码</p>
        <p>指定渠道名称</p>
        <p>所在省</p>
      </div>
      <div class="content_heater">
        <p>BJJSKSJKF</p>
        <p>河南省周口市商水县</p>
        <p>浙江省</p>
      </div>
      <div class="content_heater">
        <p>FBIDHIDD</p>
        <p>上海市青浦区</p>
        <p>浙江省</p>
      </div>
      <div class="content_heater">
        <p>DJDODDJ</p>
        <p>老百姓药业有限公司</p>
        <p>浙江省</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formInline: {
        user: "选择客户",
        user1: "金额",
        user2: "选择区域",
        user3: "请选择渠道",
        region: "正常",
        region1: "金额",
        region2: "指定渠道",
      },
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    },
  },
};
</script>

<style scoped>
.big_box {
  width: 95%;
  background-color: white;
  overflow: hidden;
  margin: 0 auto;
}

.margin {
  margin-top: 20px !important;
}

.el-form {
  display: flex;
  align-items: center !important;
}

.span {
  position: absolute;
  width: 130px;
  height: 20px;
  font-size: 12px;
  margin-top: 10px;
}

.el-input {
  width: 90px !important;
}

.select {
  width: 80px !important;
}

.select1 {
  width: 120px !important;
}

.input1 {
  width: 240px;
  height: 30px;
  background-color: #f8f8f8;
  border: 0;
  padding-left: 10px;
  margin-top: 5px;
  outline: none;
  font-size: 14px;
}

.input2 {
  width: 300px;
  height: 30px;
  border: 0;
  padding-left: 20px;
  margin-top: 5px;
  outline: none;
  font-size: 14px;
  border: 1px solid #eee;
  border-radius: 5px;
}

.input3 {
  width: 110px !important;
}

.el-tag {
  margin-top: 5px;
}

.content {
  width: 85%;
  height: 200px;
  margin: 0 auto;
  background-color: #ffffff;
}

.content_heater {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid #eeeeee;
}

.content .content_heater:nth-of-type(1) {
  background-color: #f2f2f2;
  border-bottom: 0;
}

.content_heater p:nth-child(1) {
  width: 150px;
}

.content_heater p:nth-child(2) {
  width: 400px;
  margin-left: 100px;
}

.content_heater p:nth-child(3) {
  width: 150px;
}
</style>